//
//  ChildCell.swift
//  物料商行
//
//  Created by HaoDong Hong on 2017/9/10.
//  Copyright © 2017年 HaoDong Hong. All rights reserved.
//

import UIKit

class ChildCell: UITableViewCell {
    @IBOutlet weak var childLabel: UILabel!
    @IBOutlet weak var bkView: UIView!
    @IBOutlet weak var leftButton: UIButton!
    @IBOutlet weak var rightButton: UIButton!
    
    override func setHighlighted(_ highlighted: Bool, animated: Bool) {
        super.setHighlighted(highlighted, animated: animated)
        if highlighted {
            UIView.animate(withDuration: 1.0, animations: {
                self.bkView.backgroundColor = #colorLiteral(red: 0.2588235438, green: 0.7568627596, blue: 0.9686274529, alpha: 1)
            })
        } else {
            UIView.animate(withDuration: 1.0, animations: {
                self.bkView.backgroundColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1)
            })
        }
    }
    
//    @IBAction func leftButtonTapped(_ button: UIButton!) {
//        
//    }
//    
//    @IBAction func rightButtonTapped(_ button: UIButton!) {
//        
//    }
}
